package eteam.aps.systeminterface.model.reqparam;

import eteam.aps.common.QueryFilter;
import eteam.aps.systeminterface.model.enums.StateEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;

@Data
@ApiModel(value = "分页查询客户请求参数")
public class QueryCustomerParam extends QueryFilter {
    @ApiModelProperty("客户分类ID")
    @NotBlank(message = "所属分类为空")
    private String classid;
    @ApiModelProperty("检索关键字")
    private String keyword;
    @ApiModelProperty("筛选状态")
    @NotNull(message = "状态不合法")
    private StateEnum state = StateEnum.Delete;
    @ApiModelProperty("筛选状态集合，若stateArr不为空，则忽略state属性")
    private ArrayList<StateEnum> stateArr;
}
